/**
 * SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
 * SPDX-License-Identifier: Mulan PSL v2
 */
/**
 * Created by czh on 2019/3/29.
 */

import {MSG_TYPE_CLS_MAP, MSG_TYPE_NAME_MAP, MSG_STATUS_CLS_MAP} from 'src/home/mod_common/const/msg';

export default {
    methods: {

        //根据状态等级获取样式类名
        _getTypeCls (level) {
            return MSG_TYPE_CLS_MAP[level];
        },

        _getTypeName (level) {
            return MSG_TYPE_NAME_MAP[level];
        },

        //根据处理状态获取样式类型映射
        _getStatusCls (status) {
            return MSG_STATUS_CLS_MAP[status];
        }
    }
};
